package com.xl.basic.entity.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NonNull;
import lombok.experimental.Accessors;

/**
 * @author 钟勇
 * Create in 2023/8/29 17:27
 */
@Data
@Accessors(chain = true)
public class AddMenuParam {
    @NonNull
    @NotBlank(message = "菜单标题不能为空")
    @Schema(title = "菜单标题")
    private String title;

    @Schema(title = "菜单url")
    private String url;

    @Schema(title = "菜单图标icon")
    private String iconClass;

    @Schema(title = "菜单图标url，和icon二选一")
    private String iconImgUrl;

    @Schema(title = "父菜单id")
    private Integer parentMenuId;

    @Schema(title = "菜单排序，默认10")
    private Integer sortIndex = 10;
}
